package com.itheima.demo;

public class Manager {
    private static final Manager manager = new Manager();
    private Manager(){
    }
    public static Manager getInstance(){
        return manager;
    }
    public static void control(JD jd){
        jd.press();
    }
    public static void show(JD[] jds){
        for (int i = 0; i < jds.length; i++) {
            System.out.println(i+1+jds[i].getName()+"当前状态为："+jds[i].isStatus());
        }
    }
}
